package com.unohacha.qqj.fzdr.personal.presenter;

import com.unohacha.qqj.fzdr.personal.model.ReleaseManagementImpl;
import com.unohacha.qqj.fzdr.personal.view.IReleaseManagementView;

/**
 * 请求管理界面
 */
public class ReleaseManagementPresenter implements IReleaseManagementPresenter {

    private IReleaseManagementView iReleaseManagementView;
    private ReleaseManagementImpl releaseManagement;

    public ReleaseManagementPresenter(IReleaseManagementView iReleaseManagementView) {
        this.iReleaseManagementView = iReleaseManagementView;
        releaseManagement = new ReleaseManagementImpl(this);
    }

    @Override
    public void getReleaseManagement(String token, String typeid, String supply_cate_one, String supply_cate_two, String keyword, String page) {
        releaseManagement.getReleaseManagement(token, typeid, supply_cate_one, supply_cate_two, keyword, page);
    }

    // 请求发布管理成功 更新界面
    @Override
    public void upDataReleaseManagement(String data) {
        iReleaseManagementView.upReleaseManagementData("");
    }
}
